package com.ygqh.baby.service;

import java.util.Date;
import java.util.List;

import com.ygqh.baby.ao.GroupMode;
import com.ygqh.baby.ao.PromotionStatus;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgTuan;

public interface YgTuanService {

	List<YgTuan> find();

	int findCount();

	YgTuan findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgTuan ygTuan);

	int update(YgTuan ygTuan);

	int saveOrUpdate(YgTuan ygTuan);

	ResultSet<YgTuan> search(QueryInfo queryInfo, String q, PromotionStatus pstatus, Date startDate, Date endDate);

	List<YgTuan> findList(QueryInfo queryInfo, PromotionStatus pstatus, Date startDate, Date endDate, GroupMode groupMode, String attribute);

	List<String> findTuanAttribute();

}
